import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import { createStore } from './myselfredux/createStore';
import { R, TEST } from './useredux/testCreateStore';
import { Provider } from './myselfredux/connect';
import { applyMiddleware } from './myselfredux/middle';
import thunk from './myselfredux/thunk';
import thunkay from './myselfredux/thunkay';

const store = createStore(R, applyMiddleware(thunk, thunkay));

ReactDOM.render(<Provider store={store}><App /></Provider>, document.getElementById('root'));
registerServiceWorker();
